package actions;
import java.beans.PropertyChangeSupport;

/**
 * Singelton
 *  
 * @author Oliver Duerr
 */
public final class Settings {

	private static Settings settings = new Settings();
	
	/** A {@link PropertyChangeEvent} is fired when the range has changed.*/
	public static final String RANGE_CHANGE = "Range Changed";	
	
	/** Fired when new GPS-Files are selected for loading*/
	public static final String LOAD_GPS_FILES = "Load GPS";	
	
	/** Fired when new GPS-Files are loaded*/
	public static final String LOADED_GPS_FILES = "Loaded GPS";
	
	/** Register and remove! remaining (no {@link ZoomEventManager}) listeners here*/
	private final PropertyChangeSupport propertyChangeSuppport = new PropertyChangeSupport(this);

	private Settings() {
		//Singelton
	}
	
	public static Settings getInstance() {
		return settings;
	}
	
	/**
	 * Register and remove! remaining (no {@link ZoomEventManager}) listeners here.
	 * @return t
	 */
	public PropertyChangeSupport getPropertyChangeSupport() {
		return propertyChangeSuppport;
	}
}
